package com.example.wanandroid.service;

import com.example.wanandroid.pojo.Question;

import java.util.HashMap;
import java.util.List;

/**
 * @Desc TODO
 * @Author 小强
 * @Date 2020/4/17 20:58
 */
public interface QuestionService {
    int deleteByPrimaryKey(Long id);

    int insert(Question record);

    Question selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Question record);

    List<Question> listMyQuestions(Long userid, int start, int pageSize);

    List<Question> listAllQuestions(int start, int pageSize);
}
